package com.yellowpage.wf.data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.SEQUENCE;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * Participants entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "WF_PARTICIPANTS")
public class Participants implements java.io.Serializable {

	// Fields

	private Long participantsId;
	private String participantType;
	private String participantValue;
	private Long workflowNodeId;
	private String participantName;

	// Constructors

	/** default constructor */
	public Participants() {
	}

	/** full constructor */
	public Participants(String participantType, String participantValue,
			Long workflowNodeId, String participantName) {
		this.participantType = participantType;
		this.participantValue = participantValue;
		this.workflowNodeId = workflowNodeId;
		this.participantName = participantName;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "identity")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "PARTICIPANTS_ID", unique = true, nullable = false, precision = 18, scale = 0)
	public Long getParticipantsId() {
		return this.participantsId;
	}

	public void setParticipantsId(Long participantsId) {
		this.participantsId = participantsId;
	}

	@Column(name = "PARTICIPANT_TYPE", length = 64)
	public String getParticipantType() {
		return this.participantType;
	}

	public void setParticipantType(String participantType) {
		this.participantType = participantType;
	}

	@Column(name = "PARTICIPANT_VALUE", length = 1024)
	public String getParticipantValue() {
		return this.participantValue;
	}

	public void setParticipantValue(String participantValue) {
		this.participantValue = participantValue;
	}

	@Column(name = "WORKFLOW_NODE_ID", precision = 18, scale = 0)
	public Long getWorkflowNodeId() {
		return this.workflowNodeId;
	}

	public void setWorkflowNodeId(Long workflowNodeId) {
		this.workflowNodeId = workflowNodeId;
	}

	@Column(name = "PARTICIPANT_NAME", length = 128)
	public String getParticipantName() {
		return this.participantName;
	}

	public void setParticipantName(String participantName) {
		this.participantName = participantName;
	}

}